<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>部门成员加减分管理系统</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
    <h1>部门成员加减分管理系统</h1>
    <div class="search-container">
        <input type="text" id="searchInput" placeholder="搜索成员...">
        <button onclick="searchMembers()">搜索</button>
    </div>
    <div class="members-container">
        <table>
            <thead>
            <tr>
                <th>ID</th>
                <th>姓名</th>
                <th>部门</th>
                <th>分数</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody id="membersTableBody">
            <!-- 成员列表将通过JavaScript动态插入 -->
            </tbody>
        </table>
    </div>
    <div class="add-member-container">
        <h2>添加新成员</h2>
        <form id="addMemberForm">
            <div class="form-group">
                <label for="nameInput">姓名:</label>
                <input type="text" id="nameInput" required>
            </div>
            <div class="form-group">
                <label for="departmentInput">部门:</label>
                <input type="text" id="departmentInput" required>
            </div>
            <div class="form-group">
                <label for="scoreInput">初始分数:</label>
                <input type="number" id="scoreInput" required>
            </div>
            <button type="submit">添加成员</button>
        </form>
    </div>
    <div class="adjust-score-container">
        <h2>调整成员分数</h2>
        <form id="adjustScoreForm">
            <div class="form-group">
                <label for="memberIdInput">成员ID:</label>
                <input type="number" id="memberIdInput" required>
            </div>
            <div class="form-group">
                <label for="scoreAdjustmentInput">分数调整:</label>
                <input type="number" id="scoreAdjustmentInput" required>
            </div>
            <div class="form-group">
                <label>调整类型:</label>
                <div class="radio-group">
                    <input type="radio" id="addScoreRadio" name="adjustmentType" value="add" checked>
                    <label for="addScoreRadio">加分</label>
                    <input type="radio" id="subtractScoreRadio" name="adjustmentType" value="subtract">
                    <label for="subtractScoreRadio">扣分</label>
                </div>
            </div>
            <button type="submit">调整分数</button>
        </form>
    </div>
</div>
<script src="script.js"></script>
</body>
</html>